Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

contracts: Passing zero as deposit_limit to call_v2 correctly limits the deposit to nothing #3392

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

athei
Copy link
Member

@athei athei commented Feb 19, 2024

Only affects unstable v2 versions of call and instantiate. Also only when 0 was passed as desposit_limit. Old behaviour was allowing all the remaining balance. New correct behaviour is to not allow any deposit. Otherwise both passing the SENTINEL and encoding 0 would mean the same thing.

@athei athei requested a review from pgherveou February 19, 2024 14:19
@athei athei mentioned this pull request Feb 19, 2024
@paritytech-cicd-pr
Copy link

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable 1/3
Logs: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/5262902

@athei athei merged commit 5a3b03e into pg/call_v2 Feb 19, 2024
25 of 127 checks passed
@athei athei deleted the at/callzerodeposit branch February 19, 2024 14:38
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants